package org.edu.modules.logistics.bx.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.edu.common.base.BaseEntity;
import java.sql.Date;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

/**
 * entity-a-低耗品出入库
 */
@TableName("ve_houqin_haopin_cr")
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="a-低耗品出入库对象", description="ve_houqin_haopin_cr")
public class VeHqHaopinCr extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField
    @ApiModelProperty(value = "物品Id")
    private Integer hqId;

    @TableField
    @ApiModelProperty(value = "数量")
    private Integer number;

    @TableField
    @ApiModelProperty(value = "出入时间")
    @JsonFormat(timezone="GMT+8",locale="zh",  pattern="yyyy-MM-dd")
    private Date crTime;

    @TableField
    @ApiModelProperty(value = "操作类型：1=入库，2=领用，3=借用、4=报废、5=归还、6=调拨")
    private Integer type;

    @TableField
    @ApiModelProperty(value = "关联的出入库操作ID，主要是归还和调拨使用")
    private Integer glId;

    @TableField
    @ApiModelProperty(value = "备注")
    @Length(max = 50)
    private String remark;

    @TableField
    @ApiModelProperty(value = "班级Id")
    @Length(max = 36)
    private String clasId;

    @TableField
    @ApiModelProperty(value = "")
    @Length(max = 50)
    private String clasIds;

    @TableField
    @ApiModelProperty(value = "申请人")
    @Length(max = 32)
    private String applyUser;

    @TableField
    @ApiModelProperty(value = "申请人")
    @Length(max = 50)
    private String applyUserName;

    @TableField
    @ApiModelProperty(value = "经手人")
    @Length(max = 32)
    private String jsUser;

    @TableField
    @ApiModelProperty(value = "经手人")
    @Length(max = 50)
    private String jbUserName;

    @TableField
    @ApiModelProperty(value = "批准人")
    @Length(max = 32)
    private String pjUser;

    @TableField
    @ApiModelProperty(value = "批准人")
    @Length(max = 50)
    private String pjUserName;
}
